<?php

$rows = array( array('材料编号','材料名称','品牌','规格','单位', '数量','结存数量','最低库存', '用途', '部门', '采购类型', '单号', '日期', '备注', ) );
if($list) foreach($list as $ware){
	$tmp = array($ware['sno'], $ware['name'], $ware['brand'], $ware['specific'], $ware['unit'], $ware['amount'],$ware['_amount'],$ware['cordon'],
			$ware['remark_use'], $ware['dept_name'], DemandHelper::type2text($ware['demand_type']), DemandHelper::getSNO($ware['demand_id']),
			date('Y-m-d', $ware['addtime']), $ware['remark '] );
	$rows[] = $tmp;
}
Exporter::csv($rows, '采购需求明细表');

?>
